<?php
    function __autoload($class_name)
	{
		include_once('../classes/'.strtolower($class_name).'.php');
	}
    
    $MaLoaiSanPham = $_POST['MaLoaiSanPham'];
    
    $loaisanpham = new loaisanphambs();
    $loaisanpham->MaLoaiSanPham = $MaLoaiSanPham;
    
    if($loaisanpham->delete())
        echo "yes";
    else
        echo "no";
?>